package com.wfuhui.modules.hospital.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.hospital.dao.PaymentDao;
import com.wfuhui.modules.hospital.entity.PaymentEntity;
import com.wfuhui.modules.hospital.service.PaymentService;



@Service("paymentService")
public class PaymentServiceImpl implements PaymentService {
	@Autowired
	private PaymentDao paymentDao;
	
	@Override
	public PaymentEntity queryObject(Integer id){
		return paymentDao.queryObject(id);
	}
	
	@Override
	public List<PaymentEntity> queryList(Map<String, Object> map){
		return paymentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return paymentDao.queryTotal(map);
	}
	
	@Override
	public void save(PaymentEntity payment){
		paymentDao.save(payment);
	}
	
	@Override
	public void update(PaymentEntity payment){
		paymentDao.update(payment);
	}
	
	@Override
	public void delete(Integer id){
		paymentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		paymentDao.deleteBatch(ids);
	}
	
}
